import { http } from "@/uni-sub-base/service/request.js"
let serviceName = "BuyOrder/"
import { getBaseUrls } from "@/utils/appUrl.js"
//退货单列表
export function GetRefundOrderList(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetRefundOrderList",
        data,
    })
}
//审核退货
export function CheckRefundOrder(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "CheckRefundOrder",
        data,
    })
}
//退货确认收货
export function CompleteRefundOrder(path) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "CompleteRefundOrder" + path,
    })
}

//退货单详情
export function GetRefundOrderDetail(path) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetRefundOrderDetail" + path,
    })
}

//获取采购单
export function GetBuyOrderList(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetBuyOrderList",
        data,
    })
}
//获取采购单详情
export function GetBuyOrderById(path) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetBuyOrderById" + path,
    })
}
//采购单审核
export function CheckBuyOrder(path) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "CheckBuyOrder" + path,
    })
}
//采购单接受拒绝
export function ReceiveBuyOrder(path) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "ReceiveBuyOrder" + path,
    })
}
//采购单发货出库
export function BuyOrderSendOut(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "BuyOrderSendOut",
        data,
    })
}
//出库单列表
export function GetBuyOrderStockOutList(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetBuyOrderStockOutList",
        data,
    })
}
//出库单详情
export function GetBuyOrdStockOut(path) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetBuyOrdStockOut" + path,
    })
}

//全部接收
export function BatchReceiveBuyOrder() {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "BatchReceiveBuyOrder",
    })
}
//发货列表
export function GetOrderSendListByBuyId(path) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetOrderSendListByBuyId" + path,
    })
}
//发货详情
export function GetSendOrderDetailById(path) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetSendOrderDetailById" + path,
    })
}
//发货记录
export function GetBuyOrdDelivery(path) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetBuyOrdDelivery" + path,
    })
}
//发货
export function SendBuyOrdOut(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "SendBuyOrdOut",
        data,
    })
}
//发起结算列表
export function GetWaitSettlementBuyOrderList(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetWaitSettlementBuyOrderList",
        data,
    })
}
//发起结算详情
export function GetToSettlement(data, path) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetToSettlement" + path,
        data,
    })
}
//往来结算列表
export function GetSettlementOrderList(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetSettlementOrderList",
        data,
    })
}
//往来结算详情
export function GetSettlementOrderById(path) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetSettlementOrderById" + path,
    })
}
//提交订单结算
export function CreateSettlementOrder(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "CreateSettlementOrder",
        data,
    })
}
//确认收款
export function ConfirmSettlementOrder(path) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "ConfirmSettlementOrder" + path,
    })
}
//审核结算
export function CheckSettlementOrder(path) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "CheckSettlementOrder" + path,
    })
}
//付款确认
export function PaySettlementOrder(path) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "PaySettlementOrder" + path,
    })
}
export function CancelRefundOrder(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "CancelRefundOrder",
        data,
    })
}
